﻿using AutoMapper;
using ShoppingCar.Books;
using ShoppingCar.Bottoms;
using ShoppingCar.botton;
using ShoppingCar.carousel;
using ShoppingCar.Carousels;
using ShoppingCar.head;
using ShoppingCar.Heads;
using ShoppingCar.prefecture;
using ShoppingCar.Prefectures;

namespace ShoppingCar
{
    public class ShoppingCarApplicationAutoMapperProfile : Profile
    {
        public ShoppingCarApplicationAutoMapperProfile()
        {
            /* You can configure your AutoMapper mapping configuration here.
             * Alternatively, you can split your mapping configurations
             * into multiple profile classes for a better organization. */
            CreateMap<Book, BookDto>();
            CreateMap<CreateUpdateBookDto, Book>();

            CreateMap<Headss, HeadDto>();
            CreateMap<CreateUpdateHeadDto, Headss>();

            CreateMap<Bottom, ButtomDto>();
            CreateMap<CreateUpdateButtomDto, Bottom>();

            CreateMap<Carousel, CarouselsDto>();
            CreateMap<CreateUpdateCarouselsDto, Carousel>();

            CreateMap<Prefecture, PrefecturesDto>();
            CreateMap<CreateUpdatePrefecturesDto, Prefecture>();
            //CreateMap<Prefecture, PrefecturesDto>();
            //CreateMap<CreateUpdateButtomDto, Bottom>();
        }
    }
}
